﻿using System.Linq;
using Apps.Models;


namespace Apps.IDAL
{
	public interface ISysSampleRepository
	{
		/// <summary>
		/// 获取列表
		/// </summary>
		/// <param name="dBEntities">数据库上下文</param>
		/// <returns>数据列表</returns>
		IQueryable<SysSample> GetList(AppsDBEntities dBEntities);
		/// <summary>
		/// 创建一个实体
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
		int Create(SysSample entity);
		/// <summary>
		/// 删除一个实体
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		int Delete(string id);
		/// <summary>
		/// 修改一个实体
		/// </summary>
		/// <param name="entity"></param>
		/// <returns></returns>
		int Edit(SysSample entity);
		/// <summary>
		/// 获取一个实体
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		SysSample GetById(string id);
		/// <summary>
		/// 判断一个实体是否存在
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		bool IsExist(string id);
	}
}
